<!DOCTYPE html>
<html>
<head>
  <title>属性表单</title>
  {include file="public/head" /}
</head>
<body>
<div class="wrapper" >

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper" style="background: #fff">
 

    <!-- Main content -->
    <section class="content container-fluid" >

      <div class="row" >
        <div class="col-xs-12">
             <!-- form start -->
            <form id="attrForm" action="" class="form-horizontal">
            <input type="hidden" name="id" id="cid" value="{$data.id}">
              <div class="box-body">
                <div class="form-group">
                  <label class="col-xs-2 form-control-static">属性名称</label>
                  <div class="col-xs-10">
                    <input type="text" class="form-control" name="name" value="{$data.name}">
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-xs-2 form-control-static">属性值</label>
                  <div class="col-xs-10">
                    <textarea class="form-control" name="value" style="height: 90px" placeholder="多个属性值请以‘ , ’隔开">{$data.value}</textarea>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-xs-2 form-control-static">扩展值</label>
                  <div class="col-xs-10">
                    <textarea class="form-control" name="extend" style="height: 90px" placeholder="扩展值要与属性值一一对应">{$data.extend}</textarea>
                  </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 form-control-static">显示/隐藏</label>
                    <div class="col-xs-10">
                        <label class="checkbox-inline">
                            <input type="radio" name="is_show" value="1" {$data.is_show==1?'checked':''}>显示
                        </label>
                        <label class="checkbox-inline">
                            <input type="radio" name="is_show" {$data.is_show==0?'checked':''} value="0"> 隐藏
                        </label>
                    </div>
                </div>
              </div>
            </form>
        </div>
      </div>
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
</div>
<!-- ./wrapper -->
{include file="public/js" /}
<script type="text/javascript">
//根据需要填写需要的模块
function confirm() {
    return $("#attrForm").serialize();
}

</script>
</body>
</html>